<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      ul {
        list-style: none;
      }
      .head {
        height: 100px;
        background: skyblue;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      .head div {
        flex-grow: 1;
        display: flex;
        align-items: center;
      }
      .head ul {
        flex-grow: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        column-gap: 50px;
      }
      @media (min-width: 768px) {
        .head {
          height: 50px;
          flex-direction: row;
        }
        .head ul {
          flex-grow: 0;
        }
      }
    </style>
  </head>
  <body>
    <section class="head">
      <div>logo</div>
      <ul>
        <li>item1</li>
        <li>item2</li>
        <li>item3</li>
        <li>item4</li>
      </ul>
    </section>
  </body>
</html>
